@import "reset.scss";
$base-width: 1423px;

.carlistwrap {
    width: $base-width;
    position: relative;
    overflow: hidden;
    margin: 0 auto;

    // 引入页面头部 
    .headerwrap {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
}
// 当前位置
.home-menu{
    width: $base-width;
    margin-top: 140px;
    height: 50px;
    // background-color: antiquewhite;
    p{
        font-size: 16px;
        color: #acacac;
        margin-left: 100px;
        line-height: 50px;
        a{
            color: #6b6b6b;
            font-size: 18px;
        }
    }
}
// 购物袋
.carlist {
    width: $base-width;
    >h2 {
        height: 140px;
        line-height: 140px;
        text-align: center;
        font-size: 32px;
        border-bottom: 1px solid black;
    }

    //购物车物品
    .caritemwrap {
        margin: 0 100px;

        .caritem {
            height: 190px;
            // background-color: aqua;
            padding: 30px 0;
            border-bottom: 1px solid #F4F4F4;
            display: flex;
            justify-content: space-around;

            >div {
                width: 16%;
                // border: 1px solid red;
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .check {
                input {
                    width: 18px;
                    height: 18px;
                }
            }

            .itemimg {
                // background-color: antiquewhite;

                img {
                    height: 100%;
                }
            }

            .pmessage {
                padding-left: 10px;
                flex-direction: column;
                justify-content: center;
                align-items: flex-start;

                .pname {
                    h5 {
                        font-size: 14px;
                        color: #2b2b2b;
                    }

                    p {
                        font-size: 14px;
                        color: #474747;
                        padding-bottom: 14px;
                    }
                }

                .psize {
                    font-size: 14px;
                    color: #474747;
                }
            }
            .pprice{
                font-weight: bold;
                color: #474747;
            }
            .pnumchange{
                div{
                    width: 38px;
                    height: 38px;
                    border: 1px solid #C5C5C7;
                    color: #8E8E93;
                    font-size: 22px;
                    line-height: 40px;
                    text-align: center;
                    cursor: pointer;
                }
                .pnum{
                    color: #777;
                    margin: 0 5px;
                    font-size: 16px;
                }
                .sub,.add{
                    &:hover{
                        background-color: #F4F4F4;
                    }
                }
            }
            .delbtn{
                button{
                    width: 15px;
                    font-size: 18px;
                    border: none;
                    font-weight: normal;
                    cursor: pointer;
                    background-color: transparent;
                    &:hover{
                        color: #777;
                    }
                }
            }
        }

        .caritem:last-child {
            border: none;
        }
    }

    // 结算
    .caraccounts {
        margin: 0 100px;
        // background-color: antiquewhite;
        .prosum{
            height: 120px;
            padding: 30px;
            background-color: #F8F9FB;
            .prosumitem{
                height: 40px;
                line-height: 40px;
                display: flex;
                justify-content: space-between;
                font-size: 14px;
            }
            .total{
                >div{
                    font-weight: bold;
                }
            }
        }
        .payment{
            height: 50px;
            padding: 40px 0 120px;
            display: flex;
            align-items: center;
            .checkall{
                margin-right: 730px;
                cursor: pointer;
                input{
                    width: 20px;
                    height: 20px;
                    vertical-align: middle;
                    margin-right: 8px;
                }
                &:hover{
                    span{
                        color: #777;
                    }
                }
            }

            .gobuy{
                width: 200px;
                height: 100%;
                border: 1px solid black;
                box-sizing: border-box;
                text-align: center;
                line-height: 50px;
                color: #2b2b2b;
                &:hover{
                    color: #777;
                }
            }

            .paybtn{
                width: 200px;
                height: 50px;
                color: #fff;
                border: none;
                background-color: #0047BB;
                margin-left: 20px;
                font-size: 16px;
                &:hover{
                    color: #777;
                }
            }
        }
    }
}

// 购物车为空
.carnull{
    width: 100%;
    height: 1070px;
    display: none;
    margin-top: 50px;
    // background-color: antiquewhite;
    .carnullcon{
        padding: 150px 10px 500px;
        .carnullimg{
            width: 500px;
            height: 180px;
            margin: 0 auto;
        }
        p{
            height: 20px;
            margin-top: 55px;
            text-align: center;
            font-size: 16px;
            color: #bdbcbc;
        }
        .p2{
            height: 40px;
        }
        .p2 a{
            width: 150px;
            height: 40px;
            line-height: 40px;
            display: inline-block;
            background-color: #0047BB;
            color: #fff;
            font-size: 18px;
        }

    }
    
}